package org.pb;

import java.util.ArrayList;
import java.util.List;

import org.apache.commons.httpclient.Credentials;
import org.pb.R.id;
import org.springframework.http.MediaType;
import org.springframework.http.client.CommonsClientHttpRequestFactory;
import org.springframework.http.client.HttpComponentsClientHttpRequestFactory;
import org.springframework.http.converter.FormHttpMessageConverter;
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.http.converter.StringHttpMessageConverter;
import org.springframework.http.converter.json.MappingJacksonHttpMessageConverter;
import org.springframework.web.client.RestTemplate;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.EditText;
import android.widget.Toast;

public class MyAccount extends Activity implements OnClickListener {
private View myOrders;
private View myPayments;
private EditText infoPane;

	public void onClick(View arg0) {
		Intent i;
		
		switch (arg0.getId()) {
		case R.id.button1:
			i = new Intent(this, MyOrders.class);
			startActivity(i);
		
break;
		
	
		}
	}
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.myaccount);

		myOrders = this.findViewById(R.id.button1);
		myPayments = this.findViewById(R.id.button2);
		
		infoPane=(EditText)this.findViewById(id.editText1);
		this.myOrders.setOnClickListener(this);
		this.myPayments.setOnClickListener(this);

		
	}


}
